<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>开药</title>
</head>
<script type="text/javascript">
function chkform(){ 
 if(document.getElementById("id").value!=""&& document.getElementById("msg").value=="" ){ 
  alert("药品用法请填写！"); 
  return false; 
 } 
}
</script>
<style type="text/css">
#bid {
	width: 80% px;
	height: 100px;
}
</style>
<body>
	<form action="updateDrug.do" method="post" class="table-responsive">
		<table class="table">
			<tr>
				<td class="success">药品种类</td>
				<td class="success">开药数量</td>
				<td class="success">每天计量</td>
				<td class="success">剩余库存量</td>
			</tr>
			<c:forEach items="${drug}" var="d" varStatus="status">
				<tr>
					<td   id="id" class="warning"><input type="checkbox" name="id" value="${d.getDrid()}">${d.getDrname()}</td>
					<td class="warning"><input type="text" name="num">数量/盒</td>
					<td id="msg" class="warning"><input type="text" name="usage">详细用法</td>
					<td class="warning"><input type="text" value="${d.getDrnum()}盒"></td>
				</tr>
			</c:forEach>
		</table>
		<input type="text" name="rbname" placeholder="填写病人名称" >
		<input type="hidden" name="byname" value="${name}">
		<input type="submit" value="开药" class="btn btn-success">
	</form>
</body>
</html>